<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
	template="/layout/templateMini.xhtml">

	<ui:define name="body">
		<div id="page-wrap" >
		<h:form id="consulta">
		
			<h1>
				Consultar <span>Corretor</span>
			</h1>
			<div id="resultado" class="name_wrap2" align="left" style="width:250px; color:white" >
				<rich:panel id="pesquisa" style="background: #003984; border:none; color:white;">
					<!--		CAMPO ONDE DIGITA O CÓDIGO (ID DO VISTA)			-->
					<h:inputText style="font-weight: bold; font-size: 13px;" componentSize="2" required="false" name="creciPesquisa"  value="#{consultaAction.codigo}" label="ID Vista:"/>
					
					<h:commandButton id="pesquisar" value="Pesquisar" action="#{consultaAction.buscaCorretor()}" style="padding: 5px; margin:10px; height:25px; border-radius: 4px;"/>
					<br/>
					<!--		MENSAGEM DE ERRO			-->
					<h:outputText style="color: white; font-size: 13px; font-weight: bold;" value="#{consultaAction.msgErro}" />
					<br/>
					<h:outputText style="color: white; font-size: 13px; font-weight: bold;" value="#{consultaAction.corretor.nome}" />
					<br/>
					<h:outputText style="color: white; font-size: 13px;" value="#{consultaAction.corretor.celular1}" />
					<br/>
					<h:outputText style="color: white; font-size: 13px;" value="#{consultaAction.corretor.celular2}" />
					<br/>
					<br/>
					<h:outputText style="color: white; font-size: 13px; font-weight: bold;" value="#{consultaAction.corretor.coordenador.nome}" />
					<br/>
					<h:outputText style="color: white; font-size: 13px;" value="#{consultaAction.corretor.coordenador.celular1}" />
					<br/>
					<h:outputText style="color: white; font-size: 13px;" value="#{consultaAction.corretor.coordenador.celular2}" />
					<br/>
					<br/>
					<h:outputText style="color: white; font-size: 13px; font-weight: bold;" value="#{consultaAction.corretor.diretor.nome}" />	
					<br/>
					<h:outputText style="color: white; font-size: 13px;" value="#{consultaAction.corretor.diretor.celular1}" />	
					<br/>
					<h:outputText style="color: white; font-size: 13px;" value="#{consultaAction.corretor.diretor.celular2}" />					
				</rich:panel>
				</div>
		</h:form>
		</div>
	</ui:define>
</ui:composition>